package com.example.demo.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: H_tao_X
 * Date: 2022-07-16
 * Time: 10:57
 */

@Data
@ConfigurationProperties(prefix = "student") // 读取配置文件中的对象 // 读李四的话，只需要把 student 修改
@Component // 五大类注解，这个不能省略
public class Student {
    private int id;
    private String name;
    private int age;
}
